package com.xxd.rpt3.service;

import org.springframework.data.domain.Page;

import com.xxd.rpt3.Entity.User;

public interface UserService {
    public abstract User getUserById(int id);

    public abstract Page<User> findByPage(User user, int page, int pageSize);

    public abstract User findByName(String instr);
  
    public abstract String signToken(User user);

    public String signToken(User user, int keepDay);

    public abstract User saveUser(User user);

    public void logout(String token);
}
